function Person(name) {
    this.name = name;
    this.occupation = "Ninja";
    this.whoAreYou = function () {
        return "I'm " + this.name + " and I'm a " + this.occupation;
    };
}
var h1 = new Person("wwz");
console.log("name       :" + name);
console.log("h1.name    :" + h1.name);